package com.newtouch.bxzs.business.message.websocket.constant;

/**
 * <p>
 *  WebSocket常量
 *
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021/2/2 15:10</td>
 * <td>tianshangzhu</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author tianshangzhu
 * @version 1.0.0
 * @since 1.0.0
 */
public class Constant {
    private Constant(){}

    /**
     * 链接地址
     */
    public static final String WEBSOCKET_PATH_PERFIX = "/ws-push";

    /**
     * 注册端点地址
     */
    public static final String WEBSOCKET_PATH = "/endpointWisely";

    /**
     *  订阅地址
     */
    public static final String WEBSOCKET_BROADCAST_PATH = "/topic";

    /**
     * 前端发送给服务端请求地址
     */
    public static final String FORETOSERVERPATH = "/welcome";

    /**
     * 服务端生产地址,客户端订阅此地址以接收服务端生产的消息
     */
    public static final String PRODUCER_PATH = "/topic/getResponse";

    /**
     * 点对点消息推送地址前缀
     */
    public static final String P2P_PUSH_BASEPATH = "/user";

    /**
     * 点对点消息推送地址后缀,最后的地址为/user/用户识别码/msg
     */
    public static final String P2P_PUSHPATH = "/msg";
}
